import {submitFormData, submitJsonData, submitMultipartFormData} from "../../../../../../redare/utils/Request";

/**
 * Created by RdevPlugins.JsPresenterBuilderAction on 2020-03-07 13:02:40.
 */

/**
* @param body: {parentMenuId,sortToTree}
* @returns Promise
*/
export function findUserMenu(body) {

    return new Promise((resolve, reject) => {

        submitFormData({
            url: '/api/_webplatform_workbench/common/user/menu',
            bodyParams: body
        }).then(
            result => {
                resolve(result);
        },
            error => reject(error)
        );

    });
}

